<tr class="renglon">
  <% fields_for "salida_material[detalles_attributes][]", detalle do |d| %>
    <td><%= d.text_field(:clave, :size => 5) %></td>
    <td><%= d.text_field(:descripcion) %></td>
    <td><%= d.text_field(:cantidad, :size => 5) %></td>
    <td><%= d.text_field(:precio, :size => 5) %></td>
    <td><%= link_to_function "Quitar", "$(this).up('.renglon').remove()" %></td>
  <% end %>
</tr>
